public class Animal {
    public String name;
    public int age;

//    public Animal(String name) {
//        this.name = name;
//    }
//
//    public Animal (String name, int age) {
//
//
//    }

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Animal () {
        this("xiaoHua", 23);

    }
    public  void walk () {

        System.out.println(this.name +"正在走路");
    }


}
class Cat extends Animal {

    public void run () {
        System.out.println(this.name);
        System.out.println(this.age);
        System.out.println(this.name + "正在跑");
    }
    public Cat (String name, int age) {
        this.name = name;
        this.age = age;

    }

}
